#!/usr/bin/env bash
set -e
echo "🚀 开始全自动复现 …"
python src/01_extract.py
python src/02_preprocess.py
python src/03_labeling.py
echo "👉 请人工复核 data/labeled.json，完成后敲回车继续"
read
python src/04_finetune.py
python src/05_predict.py

echo "📥 下载美国数据 & 构建 IV"
python src/06_iv_build.py
echo "📊 跑回归 & 机制检验"
python src/07_regression.py
echo "📈 打开 notebooks/08_robust.ipynb 查看可视化"
jupyter lab notebooks/08_robust.ipynb
